package com.green.cosme.util;

import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManagerFactory;

/**
 * PersistenceManagerFactory class
 * 
 * @author masato tsuchida
 * 
 */
public final class PMF {

	// PersistenceManagerFactory
	private static final PersistenceManagerFactory pmfInstance = JDOHelper.getPersistenceManagerFactory("transactions-optional");

	// private constructor for singleton pattern
	private PMF() {
	}

	// return PersistenceManagerFactory
	public static PersistenceManagerFactory get() {
		return pmfInstance;
	}
}